﻿using Coater.Domain;
using Coater.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coater.Dao
{
    public class ServoConfigDao
    {
        public async Task<List<ServoInfo>> GetList()
        {
            SQLiteHelper.SetConnectionString("Coater");

            var sql = $"select * from servo_config where Enable= true";
            return await SQLiteHelper.ReadTypeItemsAsync<ServoInfo>(sql);

        }
    }
}
